import request from '@/utils/request'

export function list(tenantId, name) {
  return request({
    url: '/ss/sys/courseThread/list',
    method: 'get',
    params: {tenantId: tenantId, name: name}
  })
}

export function deleteCourseThread(id) {
  return request({
    url: '/ss/sys/courseThread/delete',
    method: 'get',
    params: {id}
  })
}

export function getQuestionDetail(threadId) {
  return request({
    url: '/ss/sys/courseThread/replayList',
    method: 'get',
    params: {threadId}
  })
}
